Repository navigation
Conversation
…nswers in part A field the installation's permissions don't cover comes back null with a FORBIDDEN error per node; the sync threw the whole page away and paused the backfill. It now keeps the data beside the errors: refused fields leave the node, so the record keeps what webhooks stored and conversations read as unknown, and the following pages leave them out of the query (a page whose nodes were nulled is read again without them). The sync read only repositories enabled for CoderHelm's work, and repository rows are stored not enabled, so a team with none enabled was never read. It now reads every repository the installation can see. The pull requests page and the overview ask for the team's first read when it never finished (installs from before the view never send an install event), claimed so one ask goes out per ten minutes, and return its progress as first_read (repositories read of all). One INFO line per team says the repositories read, pull requests written and fields unavailable.
Two open conversations already stored still hold the merge; none known reads as unknown.
… nothing to read ends A page with a pull request GitHub returned as null, or an error that names no single refused field, no longer counts the listing complete: those pull requests are read from the REST list of each repository's open pull requests, and records are removed only when the listing is whole. The history backfill pauses on such a page instead of passing the window over. A team with no repositories stored, or whose GitHub can't be reached, ends its first read with the reason, so the page says it rather than reading and asking again every ten minutes.
coderhelm
Bot
dismissed
their stale review
December 6, 2026 06:54
Superseded by CoderHelm's latest review
Contributor
|
Auto-merge · waiting
|
Contributor
There was a problem hiding this comment.
✅ Approved with notes on da3e5b1: the PR's own change is unchanged since 142735e; the new commits only bring in main. CoderHelm's full review of 142735e holds for this commit, so it was not reviewed again.
Was this review right? Rate it 👍 / 👎 so the reviewer learns · reply @coderhelm re-review or @coderhelm <question>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The pull requests view could stay empty for two reasons. A field the installation may not read made GitHub answer the sync's search in part, and the sync threw the whole page away. The sync also read only repositories enabled for CoderHelm's work, and repository rows are stored not enabled. This keeps partial answers, reads every repository the installation can see, and asks for a team's first read as soon as the page is opened.
Changes
worker/src/clients/github.rs:graphql_read_partialreturns the data with its errors; only an answer with no data fails.common/src/pr_record.rs:split_graphqlandstrip_refused: each field GitHub refused (FORBIDDEN, per node) is taken out of its node, so the record keeps what webhooks stored. Conversations refused read as unknown, never as none open.search_query(omit): following pages leave the refused fields out, and a page whose nodes were nulled by one is read again without it.FirstRead(PRFIRST), its due rule and a conditional claim, one ask per ten minutes.worker/src/passes/pr_records.rs:gateway/src/routes/prs.rs,prs_overview.rs: returnfirst_read {reading, repos_read, repos_total, done}. When the team's first read never finished and no ask is in flight, they ask the worker for it (PrRecordsSync), under the sharedsweep:dashboard_prsbudget.docs/pull-requests.md,docs/pull-requests/api_contract.md.Verification
cargo fmt --check,cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings: clean.cargo test -p common -p worker -p gateway: all passed, apart from one new test whose expectation was then corrected. That test was re-run with the rest of thepr_recordtests (19 passed).FORBIDDENerror per node keeps every pull request, and the refused field keeps its stored value and reads as unknown.